<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        // 2.有一个页面，上面各种标签，请用js 给每个文本赋值？
        window.onload=function(){
            let tag=document.querySelectorAll("body *");
            tag.forEach(function(item){
                item.textContent="加油奥利给";
            })
        }
    </script>
</head>
<body>
    <a href="#"></a>
    <h1></h1>
    <h2></h2>
    <div></div>
</body>
</html>